package com.asl.website.aslMyaslIntro.service.impl;

import java.util.List;
import com.asl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.asl.website.aslMyaslIntro.mapper.AslMyaslIntroMapper;
import com.asl.website.aslMyaslIntro.domain.AslMyaslIntro;
import com.asl.website.aslMyaslIntro.service.IAslMyaslIntroService;

/**
 * myASL介绍Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-02
 */
@Service
public class AslMyaslIntroServiceImpl implements IAslMyaslIntroService 
{
    @Autowired
    private AslMyaslIntroMapper aslMyaslIntroMapper;

    /**
     * 查询myASL介绍
     * 
     * @param id myASL介绍主键
     * @return myASL介绍
     */
    @Override
    public AslMyaslIntro selectAslMyaslIntroById(Long id)
    {
        return aslMyaslIntroMapper.selectAslMyaslIntroById(id);
    }

    /**
     * 查询myASL介绍列表
     * 
     * @param aslMyaslIntro myASL介绍
     * @return myASL介绍
     */
    @Override
    public List<AslMyaslIntro> selectAslMyaslIntroList(AslMyaslIntro aslMyaslIntro)
    {
        return aslMyaslIntroMapper.selectAslMyaslIntroList(aslMyaslIntro);
    }

    /**
     * 新增myASL介绍
     * 
     * @param aslMyaslIntro myASL介绍
     * @return 结果
     */
    @Override
    public int insertAslMyaslIntro(AslMyaslIntro aslMyaslIntro)
    {
        aslMyaslIntro.setCreateTime(DateUtils.getNowDate());
        return aslMyaslIntroMapper.insertAslMyaslIntro(aslMyaslIntro);
    }

    /**
     * 修改myASL介绍
     * 
     * @param aslMyaslIntro myASL介绍
     * @return 结果
     */
    @Override
    public int updateAslMyaslIntro(AslMyaslIntro aslMyaslIntro)
    {
        aslMyaslIntro.setUpdateTime(DateUtils.getNowDate());
        return aslMyaslIntroMapper.updateAslMyaslIntro(aslMyaslIntro);
    }

    /**
     * 批量删除myASL介绍
     * 
     * @param ids 需要删除的myASL介绍主键
     * @return 结果
     */
    @Override
    public int deleteAslMyaslIntroByIds(Long[] ids)
    {
        return aslMyaslIntroMapper.deleteAslMyaslIntroByIds(ids);
    }

    /**
     * 删除myASL介绍信息
     * 
     * @param id myASL介绍主键
     * @return 结果
     */
    @Override
    public int deleteAslMyaslIntroById(Long id)
    {
        return aslMyaslIntroMapper.deleteAslMyaslIntroById(id);
    }
}
